<include file="Inc/header" />

        <div class="content-box">

            <form action="{:U('Admin/User/update',array('id'=>$user_list['id']))}" method="post">
                <table>
                    <tr><td>姓名</td><td>
                       <select name="username">
                            <volist name="teacher_array" id="class">
                                <option value="{$class['name']}" <if condition="$class['name'] eq $user_list['username'] "> selected='selected'</if>>{$class['name']}</option>
                            </volist>
                        </select>
                    </td></tr>
                    <tr><td>密码</td><td><input type="password" name="password"
                    <if condition="$user_list['password'] neq '' "> value=""<else /> value="123456" </if>/></td></tr>
                    <tr><td>角色</td><td>
                        <select name="role">
                            <option value="1" <if condition="$user_list['role'] eq 1 "> selected='selected'</if>>班主任</option>
                            <option value="0" <if condition="$user_list['role'] eq 0 "> selected='selected'</if>>年级组长</option>
                        </select>
                    </td></tr>
                     <tr><td>班级</td><td>
                         <select name="class">
                             <volist name="sh_class_array" id="class">
                                <option value="{$class['id']}" <if condition="$class['id'] eq $user_list['class'] "> selected='selected'</if>>{$class['name']}</option>
                             </volist>
                         </select>
                     </td></tr>
                    <tr><td>年级</td><td>
                        <select name="grade">
                            <volist name="sh_grade_array" id="grade">
                                <option value="{$grade['id']}" <if condition="$grade['id'] eq $user_list['grade'] "> selected='selected'</if>>{$grade['name']}</option>
                            </volist>
                        </select>
                    </td></tr>
                    <tr><td cols="5"></td><td><input type="submit" name="update" value="提交"/></td></tr>
                </table>
            </form>
        </div>

        <include file="Inc/footer" />